<?php
declare (strict_types=1);

namespace app\common\model;

class News extends Base
{
    protected $name = 'news';

    public function getCateTextAttr($value, $data)
    {
        return $data['cate']==1 ? '院校新闻' : '通知公告';
    }

    public function getContentAttr($value)
    {
        return htmlspecialchars_decode($value);
    }



}
